package fr.demos.cinepantin;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;


public class Produit {


	private long id;

	private double prixVente;
	private double prixAchat;

	private Article article;

	protected Produit() {
	}

	public Produit(long id, double prixVente, double prixAchat, Article article) {
		super();
		this.id = id;
		this.prixVente = prixVente;
		this.prixAchat = prixAchat;
		this.article = article;
	}

	public double getPrixVente() {
		return prixVente;
	}

	public void setPrixVente(double prixVente) {
		this.prixVente = prixVente;
	}

	public double getPrixAchat() {
		return prixAchat;
	}

	public void setPrixAchat(double prixAchat) {
		this.prixAchat = prixAchat;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Article getArticle() {
		return article;
	}

	public void setArticle(Article article) {
		this.article = article;
	}

	// public double getPrixTtc() {
	// double res;
	// res = this.prixVente
	// + ((this.prixVente * article.getTva().getValeur()) / 100);// -
	// // VoitureAncienne.PRIME
	// // ;
	// return res;
	//
	// }

}
